package org.lxy.service.impl;

import org.lxy.dao.InfomationDao;
import org.lxy.domain.InfomationEntity;
import org.lxy.service.InfomationService;
import org.lxy.utils.PageUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.lxy.utils.Query;

@Service
public class InfomationServiceImpl extends ServiceImpl<InfomationDao, InfomationEntity> implements InfomationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<InfomationEntity> page = this.page(
                new Query<InfomationEntity>().getPage(params),
                new QueryWrapper<InfomationEntity>()
        );

        return new PageUtils(page);
    }

}